﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Expense_Count.aspx.cs" Inherits="Vehicle.Web.Pages.Expense.Expense_Count" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>物流管理系统</title>
   <!-- 引用CSS与JS-->
<link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/Menu.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="SM_AJAX" runat="server">
                 </asp:ScriptManager>  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">成本维护</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：成本维护--<a href="../Expense/Expense_Count.aspx">车队运输成本核算</a></td>
          </tr>
          <tr>
            <td height="15"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
        </table>
          </td>
      </tr>
		 <tr>
          <td height=25>
           <!-- 筛选数据选择项 -->
            <table cellSpacing="0" cellPadding="2" border="0">
              <tbody>
              <td class="left_txt">筛选数据：</td>
                <td class="left_txt3">  <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                    <asp:RadioButton ID="rbt_C_ID" runat="server" Text="按承运单编号"  GroupName="select"  />
                        <asp:TextBox ID="txt_C_ID" runat="server" Width="80px"></asp:TextBox>
                  <asp:RadioButton ID="rbt_T_ID" runat="server" Text="按任务单编号"  GroupName="select"  />
                     <asp:TextBox ID="txt_T_ID" runat="server" Width="80px"></asp:TextBox><br />
                      <asp:RadioButton ID="rbt_M_ID" runat="server" Text="按条件"  GroupName="select" Checked="true"  />   
                    &nbsp;&nbsp; 车队：<asp:DropDownList ID="drop_M_ID" runat="server" AutoPostBack="True" 
                             onselectedindexchanged="drop_M_ID_SelectedIndexChanged">
                    </asp:DropDownList> 车牌：<asp:DropDownList ID="drop_V_ID" runat="server" >
                    </asp:DropDownList>
                    &nbsp;&nbsp;起始时间:&nbsp;<cc1:GMDatePicker ID="Gmdp_Start" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null"  EnableViewState="False" DisplayMode="Label">
                    </cc1:GMDatePicker>&nbsp;&nbsp;结束时间:&nbsp;
                     <cc1:GMDatePicker ID="Gmdp_End" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null"  EnableViewState="False" DisplayMode="Label">
                    </cc1:GMDatePicker>&nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Select" runat="server" 
                          Text="筛选" onclick="btn_Select_Click"  /></ContentTemplate></asp:UpdatePanel>       
                   </td></tbody></table></td></tr>
				 <tr>
				 <!-- 定义AJAX控件  -->
          <td> 
				 <asp:UpdatePanel ID="UPanel" runat="server">
				 <ContentTemplate>
				  <!-- 定义Repeater控件用于绑定数据  -->
              <asp:Repeater ID="ReptShow" runat="server"  onitemdatabound="ReptShow_ItemDataBound">
             <HeaderTemplate>
                <table id="grid" class="Tablt_All"  cellSpacing="1" cellPadding="2" rules="all" border="0">
              <tbody>
                      <tr class="main_tab">  
                <td width="8%">承运单编号</td>
                <td width="6%">任务编号</td>
                 <td width="6%">劳务费(元)</td>
                <td width="6%">保险费(元)</td>
                  <td width="5%">运输费(元)</td>
                   <td width="8%">杂费(元)</td>  
                 <td width="5%">总费用(元)</td>
                 <td width="5%">添加时间</td>
                </tr>
              </HeaderTemplate>
              <ItemTemplate>    
            <tr class="TR_All">
                  <td><asp:Label ID="lab_C_ID" runat="server" Text='<%# Eval("C_ID")%>'></asp:Label></td> 
                <td><a href="../Task/Task_View.aspx?id=<%# Eval("T_ID") %>" ><asp:Label ID="lab_T_ID" runat="server" Text='<%# Eval("T_ID")%>'></asp:Label></a></td>
                <td><asp:Label ID="lab_E_personal" runat="server" Text='<%# Eval("E_personal")%>'></asp:Label></td>
                <td><asp:Label ID="lab_E_SCost" runat="server" Text='<%# Eval("E_SCost")%>'></asp:Label></td>
                 <td><asp:Label ID="lab_E_TCost" runat="server" Text='<%# Eval("E_TCost")%>'></asp:Label></td> 
                 <td><asp:Label ID="lab_E_Incidental" runat="server" Text='<%# Eval("E_Incidental")%>'></asp:Label></td>   
                <td><asp:Label ID="lab_E_All" runat="server" Text='<%# Eval("E_All")%>'></asp:Label></td>
                <td><%# Eval("E_Time", "{0:yyyy-MM-dd}")%></td>
                </tr>
              </ItemTemplate>          
              <FooterTemplate>
               </tbody></table>
               
              </FooterTemplate>
              </asp:Repeater> 
             <font style="text-align:center; color:Red;"><%= onshow %></font>
               <!-- 注册外部控件调用AJAX控件  -->
              </ContentTemplate> 
               <Triggers>
               <asp:AsyncPostBackTrigger ControlID="btn_Select" />
               </Triggers>
   </asp:UpdatePanel> </td>              
 <tr>
 <tr class="left_txt2">
               <td>
                   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                   <ContentTemplate>
                   <span class="left_txt2">根据您的筛选当前共</font><asp:Label ID="lab_ACount" runat="server" Text="0"></asp:Label>数据&nbsp;&nbsp;其中&nbsp;&nbsp;劳务费<asp:Label
                   ID="lab_AE_personal" runat="server" Text="0"></asp:Label>元&nbsp;&nbsp;保险费<asp:Label
                   ID="lab_AE_SCost" runat="server" Text="0"></asp:Label>元&nbsp;&nbsp;运输费<asp:Label
                   ID="lab_AE_TCost" runat="server" Text="0"></asp:Label>元&nbsp;&nbsp;杂费<asp:Label
                   ID="lab_AE_Incidental" runat="server" Text="0"></asp:Label>元&nbsp;&nbsp;总费用<asp:Label
                   ID="lab_AE_All" runat="server" Text="0"></asp:Label>元</span></ContentTemplate>
                   </asp:UpdatePanel></td>
               </tr>
          <td align=right height=25>
             <img src="../../images/pic10.gif" height="13" />
            <font class="left_txt">
                <asp:Button ID="btn_Excel" runat="server" Text="导出Excel" onclick="btn_Excel_Click" /></font>&nbsp;&nbsp;&nbsp;
             </td> </td></tr>   
            
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr> 
     
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
<asp:UpdateProgress ID="UProgress" runat="server" AssociatedUpdatePanelID="UPanel">
<ProgressTemplate>
<font class="left_txt">数据提交中....</a></font>
</ProgressTemplate>
</asp:UpdateProgress>
</form>
</body>
